/**
 * 
 */
package com.ywl.webserver.util;

/**
 * 访问路径处理工具类
 * @author wl.yang
 *
 */
public class PathUtil {

	public static String getFileName(String path){
		if(path == null){
			return null;
		}
		
		String fileName = "";
		int endIndex = path.indexOf("?");
		
		if(endIndex == -1){
			return path;
		}
		
		fileName = path.substring(0, endIndex);
		return fileName;
	}
}
